package com.zhou.bjgl.bjgl.business_web.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author jz
 * @since 2021-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BTeacher对象", description="")
public class BTeacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "教师id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "学院id")
    private Long collegeId;

    @TableField(updateStrategy = FieldStrategy.IGNORED )
    private Long classId;

    @ApiModelProperty(value = "权限：0：最高 1：班主任 2：班委 3：学生")
    private Integer power;

    private String email;

    private String profileName;

    private String profileUrl;

    private Long phone;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private Date delTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer delStatus;


}
